package com.wjk.cms.controller;


import com.wjk.cms.common.Result;
import com.wjk.cms.pojo.SysContent;
import com.wjk.cms.service.SysContentService;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("sys/content")
public class SysContentController extends UnauthenticatedController {

    @Autowired
    private SysContentService sysContentService;


    @PostMapping("/get")
    public Result listAll(

    ) {

        return Result.ok().add("content", sysContentService.findById(1L));
    }




}
